package cn.ybk.org.domain;

import cn.ybk.basic.domain.BaseDomain;
import cn.ybk.basic.util.MD5Utils;
import cn.ybk.basic.util.StrUtils;
import cn.ybk.system.domain.Menu;
import cn.ybk.user.domain.Logininfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Employee extends BaseDomain{
    // 用户名
    private String username;
    // 电话
    private String phone;
    // email
    private String email;
    // 盐值
    private String salt;
    // 密码
    private String password;
    // 年龄
    private Integer age;
    // 是否启用
    private Integer state;
    // 部门id
    private Long departmentId;

    private Long logininfoId;

    private Long shopId;

    // 正常查询部门
    private Department department;
    // 登陆联查
    private Logininfo logininfo;
    // 角色联查
    private List<Long> roles;

//    // 使用无极限树查询部门
//    @JsonInclude(JsonInclude.Include.NON_EMPTY)
//    private List<Department> children = new ArrayList<>();


}
